import request from '@/utils/request'

export function getFuturess(query) {
  return request({
    url: '/knowledge/futures/getList',
    method: 'post',
    data: query
  })
}

export function getFutures(id) {
  return request({
    url: '/knowledge/futures/getDetail',
    method: 'post',
    data: id
  })
}
export function changeStatusByFuturesID(id) {
  return request({
    url: '/knowledge/futures/change-status',
    method: 'post',
    data: id
  })
}

export function saveFutures(formdata) {
  return request({
    url: '/knowledge/futures/save',
    method: 'post',
    data: formdata
  })
}

export function deleteFuturesByID(id) {
  return request({
    url: '/knowledge/futures/delete',
    method: 'post',
    data: id
  })
}
export function removeFuturesByID(id) {
  return request({
    url: '/knowledge/futures/remove',
    method: 'post',
    data: id
  })
}

export function fetchFuturesAvabile() {
  return request({
    url: '/knowledge/futures/getAvailable',
    method: 'post'
  })
}

export function getFutureListUsableAvabile(data) {
  return request({
    url: '/knowledge/futures/getAvailable',
    method: 'post',
    data:data
  })
}
